<template>
  <div class="mt-user">
    <template v-if="user">
      欢迎您！<span class="username">{{user}}</span>
    </template>
    <template v-else>
      <nuxt-link to="login" class="login">立即登录</nuxt-link>
      <nuxt-link to="register" class="register">注册</nuxt-link>
    </template>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      user:""
    };
  },
  watch: {},
  computed: {},
  methods: {},
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
</style>